import { App, defineAsyncComponent } from "vue";

export function createEditor() {
  return {
    install(app: App) {
      app.component(
        "valuka-editor",
        defineAsyncComponent(() => import("./Editor.vue"))
      );
    },
  };
}

export default createEditor();
